package com.scut.chenlujie.library.clink.core;

import java.io.Closeable;

/*
接收数据调度的封装
把一份或多个IoArgs组合成一份PPacket
 */
public interface ReceiveDispatcher extends Closeable {
    void start();

    void stop();

    interface ReceivePacketCallback {
        ReceivePacket<?, ?> onArrivedNewPacket(byte type, long length);
        void onReceivePacketCompleted(ReceivePacket packet);

        void onArrivedHeartbeat();
    }
}
